package com.zzw.service;

import com.github.pagehelper.PageInfo;
import com.zzw.bean.Shipment;

import java.util.List;
import java.util.Map;

public interface ShipmentService {
    //// 创建发货单
    //int createShipment(Shipment shipment);
    //
    //// 确认发货
    //int confirmShipment(Integer id);
    //
    //// 根据ID查询发货单
    //Shipment getShipmentById(Integer id);
    //
    //// 根据订单ID查询发货单
    //Shipment getShipmentByOrderId(Integer orderId);
    //
    //// 查询发货单详情（包括发货明细）
    //Shipment getShipmentDetailById(Integer id);
    //
    //// 分页查询发货单列表
    //PageInfo<Shipment> getShipmentList(Shipment shipment, int pageNum, int pageSize);
    //
    //// 生成发货单号
    //String generateShipmentNo();
    ///**
    // * 根据订单ID获取所有发货单
    // */
    //List<Shipment> getShipmentsByOrderId(Integer orderId);
    //
    ///**
    // * 根据订单ID统计发货单数量
    // */
    //int countShipmentsByOrderId(Integer orderId);
    //
    ///**
    // * 根据订单ID获取已发货的商品数量，返回Map<orderItemId, shippedQuantity>
    // */
    //Map<Integer, Integer> getShippedItemsByOrderId(Integer orderId);
    //
    ///**
    // * 检查订单是否有发货单
    // */
    //boolean existsByOrderId(Integer orderId);
}
